package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;
import com.javaweb.service.dto.UserConditionDto;
import com.javaweb.service.dto.UserDto;

import java.util.List;

public interface UserService {

    public User login(String username, String password) ;
    public List<User> findUserByName(String username) ;

    List<User> queryByName(String username);

    int register(User user);

    PageResult<User> queryUsers(UserConditionDto userCondtion, Integer pageNum, Integer pageSize);

    void addAssignRole(Integer userId, List<Integer> roleIds);

    // 可能是vo
    List<User> list(UserConditionDto userConditionDto);

    Integer add(UserDto userDto);

    Integer changePassword(Integer userId, String newPassword);
}
